import math


def fun(x):
    return math.log(x)+2


times=500

def iteration_cal(x):
    global times
    times-=1

    new_x=fun(x)
    if abs(x - new_x)<1e-5 or times==0 :
        return new_x
    else:
        return iteration_cal(new_x)



print("%.3f"%iteration_cal(1000))